// default package
// Generated 28 Jul, 2014 8:04:07 PM by Hibernate Tools 3.4.0.CR1
package com.galaxy.bean;

import static javax.persistence.GenerationType.IDENTITY;

import java.math.BigDecimal;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.UniqueConstraint;

/**
 * CatalogProductLinkAttributeDecimal generated by hbm2java
 */
@Entity
@Table(name = "catalog_product_link_attribute_decimal", catalog = "magento", uniqueConstraints = @UniqueConstraint(columnNames = {
		"product_link_attribute_id", "link_id" }))
public class CatalogProductLinkAttributeDecimal implements java.io.Serializable {

	private Integer valueId;
	private CatalogProductLinkAttribute catalogProductLinkAttribute;
	private CatalogProductLink catalogProductLink;
	private BigDecimal value;

	public CatalogProductLinkAttributeDecimal() {
	}

	public CatalogProductLinkAttributeDecimal(
			CatalogProductLink catalogProductLink, BigDecimal value) {
		this.catalogProductLink = catalogProductLink;
		this.value = value;
	}

	public CatalogProductLinkAttributeDecimal(
			CatalogProductLinkAttribute catalogProductLinkAttribute,
			CatalogProductLink catalogProductLink, BigDecimal value) {
		this.catalogProductLinkAttribute = catalogProductLinkAttribute;
		this.catalogProductLink = catalogProductLink;
		this.value = value;
	}

	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "value_id", unique = true, nullable = false)
	public Integer getValueId() {
		return this.valueId;
	}

	public void setValueId(Integer valueId) {
		this.valueId = valueId;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "product_link_attribute_id")
	public CatalogProductLinkAttribute getCatalogProductLinkAttribute() {
		return this.catalogProductLinkAttribute;
	}

	public void setCatalogProductLinkAttribute(
			CatalogProductLinkAttribute catalogProductLinkAttribute) {
		this.catalogProductLinkAttribute = catalogProductLinkAttribute;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "link_id", nullable = false)
	public CatalogProductLink getCatalogProductLink() {
		return this.catalogProductLink;
	}

	public void setCatalogProductLink(CatalogProductLink catalogProductLink) {
		this.catalogProductLink = catalogProductLink;
	}

	@Column(name = "value", nullable = false, precision = 12, scale = 4)
	public BigDecimal getValue() {
		return this.value;
	}

	public void setValue(BigDecimal value) {
		this.value = value;
	}

}
